﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;

#if DEBUG
using System.Windows.Forms;
#endif


namespace TLN.WS
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
#if DEBUG
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            TalentnetService service = new TalentnetService();
            service.OnStart(null);
            try 
	        {	        
                Console.WriteLine("Press any key to exit...");
                Console.ReadKey();        		
	        }
	        catch {	}
        }
#else
        static void Main()
        {

            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] { new TalentnetService() };
            ServiceBase.Run(ServicesToRun);
        }

#endif

    }
}
